package cn.sdormitory.workflow.service;

import cn.sdormitory.workflow.entity.HygieneRectificationApply;
import cn.sdormitory.workflow.vo.WorkFlowVO;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * @author: lx
 * @date: 2023/10/11 9:45
 * @description:
 */
public interface HygieneRectificationApplyService {

    /**
     * 创建卫生整改申请单
     * @param vo
     * @return
     */
    int createApply(HygieneRectificationApply vo);

    /**
     * 取消流程
     * @param vo
     * @return
     */
    boolean cancelApply(HygieneRectificationApply vo);

    /**
     * 设置审批人
     * @param vo
     */
    void setApprover(WorkFlowVO vo);

    /**
     * 修改流程状态
     * @param vo
     */
    void processResult(WorkFlowVO vo);

    /**
     * 查询申请单列表
     * @param vo
     * @return
     */
    IPage<HygieneRectificationApply> pageList(HygieneRectificationApply vo);
}
